﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using ListenMusic.Country_ServiceReference;
namespace ListenMusic.Models.Public
{
    public class CountryRepository
    {
        CountryServiceClient client = new CountryServiceClient();
        public List<DataContact_Country> getAllCountry()
        {
            try {
                DataContact_Country[] country = client.getAllCountry();
                return country.ToList();
            }
            catch (Exception e)
            {
                throw e;
            }
        }
    }
}